package com.itheima.job;

import com.itheima.service.SetmealService;
import com.itheima.service.impl.SetmealServiceImpl;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @author jshstart
 * @creat 2020-11-16 20:01
 */
@JobHandler(value = "job.test")
@Component
public class Myjob extends IJobHandler {
@Reference
private SetmealService setmealService;
    @Override
    public ReturnT<String> execute(String s) throws Exception {
       // System.out.println("my job test01...");
        setmealService.clearOssObject();
        return  SUCCESS;
    }
}
